package com.guigu.tms.commons.aggregation.feign;

import com.guigu.tms.commons.aggregation.entity.TransportLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "tms-aggregation",path = "/aggregation/transportLine",contextId = "transportLine1")
public interface TransportLineFeignClient {

    @GetMapping("getTransPortLine")
    List<TransportLine> getTransPortLine(@RequestParam TransportLine transportLine);

    @GetMapping("getTransportLineById")
    TransportLine getTransportLineById(@RequestParam String id);
}
